package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * EipNoticeInfoReaderId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfoReaderId implements java.io.Serializable {

	// Fields

	private String irid;
	private String readername;
	private Integer ueId;
	private Integer isreader;
	private Timestamp readDate;
	private Integer readerCount;
	private Integer flag;
	private Integer niid;

	// Constructors

	/** default constructor */
	public EipNoticeInfoReaderId() {
	}

	/** minimal constructor */
	public EipNoticeInfoReaderId(String irid, Integer niid) {
		this.irid = irid;
		this.niid = niid;
	}

	/** full constructor */
	public EipNoticeInfoReaderId(String irid, String readername, Integer ueId,
			Integer isreader, Timestamp readDate, Integer readerCount,
			Integer flag, Integer niid) {
		this.irid = irid;
		this.readername = readername;
		this.ueId = ueId;
		this.isreader = isreader;
		this.readDate = readDate;
		this.readerCount = readerCount;
		this.flag = flag;
		this.niid = niid;
	}

	// Property accessors

	public String getIrid() {
		return this.irid;
	}

	public void setIrid(String irid) {
		this.irid = irid;
	}

	public String getReadername() {
		return this.readername;
	}

	public void setReadername(String readername) {
		this.readername = readername;
	}

	public Integer getUeId() {
		return this.ueId;
	}

	public void setUeId(Integer ueId) {
		this.ueId = ueId;
	}

	public Integer getIsreader() {
		return this.isreader;
	}

	public void setIsreader(Integer isreader) {
		this.isreader = isreader;
	}

	public Timestamp getReadDate() {
		return this.readDate;
	}

	public void setReadDate(Timestamp readDate) {
		this.readDate = readDate;
	}

	public Integer getReaderCount() {
		return this.readerCount;
	}

	public void setReaderCount(Integer readerCount) {
		this.readerCount = readerCount;
	}

	public Integer getFlag() {
		return this.flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getNiid() {
		return this.niid;
	}

	public void setNiid(Integer niid) {
		this.niid = niid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfoReaderId))
			return false;
		EipNoticeInfoReaderId castOther = (EipNoticeInfoReaderId) other;

		return ((this.getIrid() == castOther.getIrid()) || (this.getIrid() != null
				&& castOther.getIrid() != null && this.getIrid().equals(
				castOther.getIrid())))
				&& ((this.getReadername() == castOther.getReadername()) || (this
						.getReadername() != null
						&& castOther.getReadername() != null && this
						.getReadername().equals(castOther.getReadername())))
				&& ((this.getUeId() == castOther.getUeId()) || (this.getUeId() != null
						&& castOther.getUeId() != null && this.getUeId()
						.equals(castOther.getUeId())))
				&& ((this.getIsreader() == castOther.getIsreader()) || (this
						.getIsreader() != null
						&& castOther.getIsreader() != null && this
						.getIsreader().equals(castOther.getIsreader())))
				&& ((this.getReadDate() == castOther.getReadDate()) || (this
						.getReadDate() != null
						&& castOther.getReadDate() != null && this
						.getReadDate().equals(castOther.getReadDate())))
				&& ((this.getReaderCount() == castOther.getReaderCount()) || (this
						.getReaderCount() != null
						&& castOther.getReaderCount() != null && this
						.getReaderCount().equals(castOther.getReaderCount())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())))
				&& ((this.getNiid() == castOther.getNiid()) || (this.getNiid() != null
						&& castOther.getNiid() != null && this.getNiid()
						.equals(castOther.getNiid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIrid() == null ? 0 : this.getIrid().hashCode());
		result = 37
				* result
				+ (getReadername() == null ? 0 : this.getReadername()
						.hashCode());
		result = 37 * result
				+ (getUeId() == null ? 0 : this.getUeId().hashCode());
		result = 37 * result
				+ (getIsreader() == null ? 0 : this.getIsreader().hashCode());
		result = 37 * result
				+ (getReadDate() == null ? 0 : this.getReadDate().hashCode());
		result = 37
				* result
				+ (getReaderCount() == null ? 0 : this.getReaderCount()
						.hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		result = 37 * result
				+ (getNiid() == null ? 0 : this.getNiid().hashCode());
		return result;
	}

}